﻿using System;
using System.Windows.Forms;
using Presentation;
using Infrastructure;

namespace WinClient
{
    static class Program
    {
        private static Presenter presenter;

        public static void SetLogger(ILogger log)
        {
            presenter.setLogger(log);
        }

        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var view = new LeftSideHeapForm();
            var log = new TxtLogger();
            presenter = new Presenter(view, log);
            Application.Run(view);
        }
    }
}
